#include <iostream>
#include <string>
#include <map>
#include <mutex>
#include <windows.h>
#include "CSingleton.h"
#include "CCache.h"

int main()
{
    //CSingleton* lpInstance = CSingleton::GetInstance();
    //CSingleton* lpInstance2 = CSingleton::GetInstance();
    //std::cout << "0x" << std::hex << lpInstance << std::endl;
    //std::cout << "0x" << std::hex << lpInstance2 << std::endl;

    CCache* p1 = CCache::GetInstance();
    CCache* p2 = CCache::GetInstance();
    CCache* p3 = CCache::GetInstance();
    CCache* p4 = CCache::GetInstance();
    CCache* p5 = CCache::GetInstance();
    std::cout << p1 << " " << p2 << " " << p3 << " " << p4 << " " << p5 << std::endl;
    CCache* p6 = CCache::GetInstance();
    CCache* p7 = CCache::GetInstance();
    CCache* p8 = CCache::GetInstance();
    CCache* p9 = CCache::GetInstance();
    CCache* p0 = CCache::GetInstance();
    std::cout << p6 << " " << p7 << " " << p8 << " " << p9 << " " << p0 << std::endl;

    return 0;
}